import axios from 'axios'

const request = axios.create({
    baseURL:'http://127.0.0.1:3000',
    timeout:5000
})


request.interceptors.request.use((config)=>{

    return config
}),(error)=>{
    new Promise.reject(error)
}

request.interceptors.response.use((res)=>{

    return res
}),(error)=>{
    new Promise.reject(error)
}

export default request